package com.example.xm.servive;

import com.example.xm.Entity.Commodity;
import com.example.xm.config.PageResult;

import java.util.List;

public interface CoyServive {
    /**获取*/
    public List<Commodity> getCoy(Commodity commodity);

    /**获取商品并分页*/
    public PageResult selectPager(int pageNum, int pageSize, Commodity com);

    /**删除*/
    public int del(String id);

    /**根据id获取学生对象*/
    public Commodity getCoyId(String id);

    /**添加*/
    public int Add(Commodity commodity);
    /**添加到购物车*/
    public int AddGwc(Commodity commodity);
    /**修改*/
    public  int Update(Commodity commodity);
}
